
/**
 * Metal
 * @version 1.0
 * @since 1.0
 * <p>
 * Created by Murphy at 2021/7/15 9:13
 **/

#pragma once
#include "Material.hpp"

namespace Stitches
{

class Metal : public Material
{
public:
    Metal(const Vec3f& a, double f) :albedo(a), fuzz(f < 1 ? f : 1) { }

    bool scatter(const Ray& r_in, const HitRecord& rec, Vec3f & attenuation, Ray& scattered) const override;

public:
    Vec3f albedo;
    double fuzz;
};

}